package routers

import (
	"github.com/astaxie/beego"
	"hello/controllers"
)

func init() {
    beego.Router("/", &controllers.MainController{})
    beego.Router("/user/authority", &controllers.AuthorityController{})
    //beego.Get("/user/authority", func (ctx *context.Context) {
	//	ctx.WriteString("asdf,asdf")
	//})
	//beego.Post("/user/authority", func(ctx *context.Context) {
	//	bytes, _ := ioutil.ReadAll(ctx.Request.Body)
	//	fmt.Println(string(bytes))
	//})
}
